package com.ideal.frame.node.netty;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: xuyang
 * @date: 2021/9/8 13:48
 */
@Component
@ConfigurationProperties(prefix = "node")
@Data
@ToString
@NoArgsConstructor
public class CurrentNode {
    private Long id;
    private String ip;
    private Integer port;
    private String name;
    private Integer nettyport;
    private Integer level;
    private Integer type;
    private String prefix;
    /**
     * 注册服务机构唯一通用 id，由顶级审核通过后自动生成，可在查看页面
     */
    private String gnrlId;
    /**
     * 注册服务机构名称
     */
    private String servName;
    /**
     * 签名秘钥 用于xml签名
     */
    private String privateKey;
}
